# ============================================================
# * Copyright © hk. 2022-2025. All rights reserved.
# * File name: CMakeLists.txt
# * Author   : 苏木
# * Date     : 2025-05-22
# * Version  : 
# * Description: cmake version 3.16.3
# ============================================================
## https://cmake.com.cn/cmake/help/latest/guide/tutorial/index.html
## https://cmake.org/cmake/help/latest/

# 指定 CMake 的最低版本要求
# --------------------------------------------------
cmake_minimum_required(VERSION 3.10)


# 设置项目名称和使用的编程语言
# --------------------------------------------------
project(SPROJECT C)


# 指定可执行程序和源文件
# --------------------------------------------------
add_executable(app_demo.out main.c)

# while循环
# --------------------------------------------------

# 1. 基本形式
# while(condition)
#  # ...
# endwhile()
message(STATUS "==> while循环")
set(i 1)
while(i LESS_EQUAL 5)
	message(STATUS "i = ${i}")
	math(EXPR i "${i} + 1")
endwhile()
message("")
